import store from '../../store/index'

Page(
  store.createPage({
    data: {
      datePatInfo: null
    },
    /**
     * 点击 “我要约拍” 按钮跳转函数
     * @param {} options
     */
    clickDatePat: function(e) {
      const that = this
      const datePatInfoStr = JSON.stringify(that.data.datePatInfo)
      wx.navigateTo({
        url: `/pages/date_pat_her/date_pat_her?datePatInfoStr=${datePatInfoStr}`
      })
    },
    onLoad: function(options) {
      const that = this
      const datePatInfo = JSON.parse(options.datePatInfoStr)
      that.setData({
        datePatInfo: datePatInfo
      })
    }
  })
)
